Data protection method, data protection system, access apparatus, computer-readable recording medium on which access program is recorded and data recording apparatus

ABSTRACT

The invention provides a method which can protect data of a drive from illegal accessing without increasing the load of processing on the drive side and prevent not only illegal copying on the drive side but also an illegal action on the host unit side with certainty. In the method of the invention, authentication of the drive is executed by the host unit. If the drive is authenticated, then a contents key is encrypted using a host ID registered in advance in a storage area of the host unit and a session key and first identification information read out from a storage area of the drive. Then, the encrypted contents key is transferred to the drive while contents data to be recorded and stored into the drive are encrypted with the contents key by the host unit. Thereafter, the encrypted contents data is transferred to the drive.

BACKGROUND OF THE INVENTION

[0001] 1) Field of the Invention

[0002] This invention relates to a technique for protecting data from illegal accessing when data of music, videos or the like is transferred between a data recording apparatus for recording data to store it and an access apparatus which accesses the data recording apparatus. The data recording apparatus is, for example, a digital recording and playback apparatus for recording data of music, videos or the like, and the access apparatus is, for example, a personal computer, or a host unit (CPU) in a data recording apparatus.

[0003] In recent years, thanks to the improvement in performance of personal computers and the advent of the MPEG2-ISI, it has become easy to handle data of videos and music. Further, it has become possible to acquire a disk of a large capacity of several tens GB (gigabytes) at a moderate price, and also new digital recording and playback apparatus based on a hard disk drive (HDD) or an optical disk drive have appeared.

[0004] The key when it is tried to widely popularize such less expensive data recording apparatus of high performances as described above is the protection of the copyright of various data (contents) recorded by the data recording apparatus, and it is necessary to prevent illegal copying with certainty to guard the rights of the provider of the contents.

[0005] The present invention provides a technique by which, when data is transferred between a host unit (access apparatus) and a drive (data recording apparatus), the data can be protected from illegal accessing thereby to protect the copyright with certainty without imposing a burden of processing on the drive side.

[0006] 2) Description of the Related Art

[0007] An HDD recorder, a storage-type set top box (STB) or the like is available as a digital recording and playback apparatus at present, and for the object of the protection of the copyright, an HDD built in the apparatus is in most cases fixed mechanically so that it may not be removed from the apparatus. In contrast, from a standpoint of a user, it is demanded strongly to replace only the HDD with a new HDD for a PC (Personal Computer), whose capacity has been and is increasing progressively in recent years, while the apparatus (the other part than the HDD) is left as it is.

[0008] This gives rise to a subject of the protection of the copyright upon transfer of data between the host unit and the disk drive (in other words, protection of data from illegal accessing). As a copyright protection method (data protection method) which makes use of the standard interface (ATA/ATAPI: Advances Technologies Attachment/ATA Packet Interface) for a PC, the CPPM (Content Protection for Prerecorded Media) and the CPRM (Content Protection for Recordable Media) are conventionally known.

[0009] In the CPRM, an ID (identification information; for example, a media ID of a medium) unique to a drive is set in the drive, and a writing process of contents data from the host unit onto the disk is performed in accordance with the following procedure [steps (a1) to (a8)].

[0010] (a1) A request for transfer of session keys (a plurality of media key blocks, a plurality of secret keys) and a first drive ID (static ID) stored in a ROM area in the drive is issued from the host unit to the drive.

[0011] (a2) The session keys and the first drive ID are transferred from the drive to the host unit in accordance with the request in step (a1).

[0012] (a3) The session keys and the first drive ID from the drive are stored into a RAM area of the host unit.

[0013] (a4) A random number generated on the host unit side is transmitted to the drive, and a request for transfer of a raw second drive ID (dynamic ID) and an encrypted second drive ID is issued from the host unit to the drive.

[0014] (a5) The second drive ID is encrypted using the random number from the host unit and a drive key (secret key) written in advance in a hidden area, in accordance with the request in step (a4), and the raw second drive ID and the encrypted second drive ID are transferred from the drive to the host unit.

[0015] (a6) A drive key (equivalent) is generated from the session keys and first drive ID which have been stored in step (a3) by the host unit, and the raw second drive ID from the drive is encrypted using the drive key and the random number generated in step (a4). Thereafter, the second drive ID encrypted on the host unit side and the encrypted second drive ID from the drive are compared with each other to discriminate whether or not they are coincident.

[0016] (a7) If it is discriminated in step (a6) that the second drive ID encrypted on the host unit side and the encrypted second drive ID from the drive are coincident, then it is discriminated that the drive authentication results in success, and contents data to be written into the drive is encrypted using the contents key and the contents key is encrypted using the session keys and the drive key (equivalent) generated from the first drive ID. Thereafter, the encrypted contents data and the encrypted contents key are transferred from the host unit to the drive and written onto the disk.

[0017] (a8) If it is discriminated in step (a6) that the second drive ID encrypted on the host unit side and the encrypted second drive ID from the drive are not coincident, then it is discriminated that the drive authentication results in failure, and the processing is interrupted without transferring the contents data to the drive.

[0018] On the other hand, in the CPRM, when the contents data written on the disk as described above is read out from the disk to the host unit, after authentication of the drive is performed in accordance with a procedure [steps (a1) to (a6)] similar to the procedure described above, the contents data is read out in accordance with such a procedure [steps (b1) and (b2)] as described below.

[0019] (b1) If it is discriminated in step (a6) that the second drive ID encrypted on the host unit side and the encrypted second drive ID from the drive are coincident with each other, then it is discriminated that the drive authentication results in success, and the host unit reads out the encrypted contents key and the encrypted contents data from the drive (disk). Thereafter, the encrypted contents key is decrypted using the drive key (equivalent) generated from the session keys and the first drive ID, and then, the encrypted contents data is decrypted using the decrypted contents key.

[0020] (b2) If it is discriminated in step (a6) that the second drive ID encrypted on the host unit side and the encrypted second drive ID from the drive are not coincident, then it is discriminated that the drive authentication results in failure, and the processing is interrupted without reading out the contents data from the disk.

[0021] It is to be noted that the CPPM is a copyright protection system only for readout, and in the CPPM, the steps (a1) to (a6), (b1) and (b2) described above are executed.

[0022] The drive authentication procedure [steps (a1) to (a6)]described above is called challenge/response method, and in the CPRM or the CPPM, authentication is executed only on the host unit side. In other words, unidirectional drive authentication is executed, and as a result, a burden of processing on the drive side is reduced.

[0023] Further, a contents key and contents data are recorded on a disk based on an ID unique to the drive. Consequently, even if data recorded on the disk of the drive is illegally copied (volume copy) onto another medium, since the ID is not coincident upon data readout, readout of the illegally copied data is impossible. Accordingly, the CPRM and the CPPM are effective for prevention of illegal copying.

[0024] As a representative copyright protection method other than the CPRM and the CPPM, the DTCP (Digital Transmission Content Protection) which utilizes the IEEE1394-IF is available. The DTCP assumes data transfer between different apparatus and is based on mutual authentication. As the DTCP, two methods of a full authentication method and a restrict authentication method are available. In the full authentication method, an electronic signature algorithm of a public-key/secret-key cipher technique and a DH key exchanging algorithm are adopted, and the two algorithms are based on an elliptic curve cipher.

[0025] Here, a mutual authentication procedure [steps (c1) to (c9)] where the DTCP of the full authentication method is used upon data transfer between the host unit and the disk drive is described.

[0026] (c1) A request for the host authentication is issued from the host unit to the drive. At the same time, the host unit transmits a random number and an ID unique to the host unit to the drive. The ID unique to the host unit is proof information produced for every apparatus by the license organization of the DTCP (DTLA, a company of the United States), and includes a public-key and an electronic signature.

[0027] (c2) The drive receives the random number and the ID unique to the host unit from the host unit and confirms whether or not the ID unique to the host unit is information produced by the DTLA in accordance with a verification process of an electronic signature, and checks whether or not the ID unique to the host unit is reported on an illegal apparatus list stored on the drive side.

[0028] (c3) If it is confirmed in step (c2) that there is no problem, then a request for drive authentication is issued from the drive to the host unit. At the same time, the drive transmits the random number and an ID unique to the drive. Also the ID unique to the drive is, similarly to the ID unique to the host unit,proof information produced for every apparatus by the DTLA.

[0029] (c4) The host unit receives the random number and the ID unique to the drive from the drive and confirms, similarly as in step (c2), whether or not the ID unique to the drive is information produced by the DTLA in accordance with a verification process of an electronic signature, and confirms whether or not the ID unique to the drive is reported on an illegal apparatus list stored on the host unit side.

[0030] (c5) If it is confirmed in step (c4) that there is no problem, then each of the units (host unit/drive) calculates DH information of the unit itself in order to share an encryption key in accordance with a DH key exchanging method (delivery/sharing method).

[0031] (c6) The DH information of the host unit is transmitted from the host unit to the drive.

[0032] (c7) The drive confirms whether or not the DH information received from the host unit is data transmitted from the host unit correctly, in accordance with the verification of an electronic signature.

[0033] (c8) Conversely, the DH information of the drive is transmitted from the drive to the host unit.

[0034] (c9) The host unit confirms whether or not the DH information received from the drive is data transmitted from the drive correctly, in accordance with the verification of an electronic signature.

[0035] As described above, in the mutual authentication methods represented by the DTCP, since the host unit and the drive both have a facility (mutual authentication facility) which checks whether or not the drive and the host unit are correct opposite parties for performing data transmission, respectively, not only illegal coping on the drive side is prevented with certainty but also an illegal action (impersonation or the like) on the host unit side can be prevented with certainty.

[0036] It is to be noted that, while the DTCP of the restrict authentication method performs authentication using a common secret key and a hash function, also in the DTCP of the restrict authentication method, basically the host unit and the drive have an equal relationship to each other similarly as in the DTCP of the full authentication method described above and execute similar authentication processes each other. Therefore, description of the same is omitted herein to avoid redundancy.

[0037] In the CPRM and the CPPM described above, however, because the drive authentication is executed only on the host unit side, although illegal copying on the drive side can be prevented with certainty, the authentication of the host unit cannot be executed on the drive side. Accordingly, if the authentication of the drive results in success, then it is possible for a plurality of apparatus (host units), that is, irregular host units, to access the drive and play back the contents data recorded on the disk. Therefore, there is a subject that the data of the drive cannot be protected from illegal accessing by an irregular host unit and an illegal action (impersonation or the like) on the host unit side cannot be prevented.

[0038] Thus, if the DTCP described above is adopted, then since not only the drive authentication on the host unit side but also the host authentication on the drive side are executed, both of illegal copying on the drive side and an illegal action on the host unit side can be prevented. However, the authentication process of the DTCP is very complicated and the host unit and the drive have an equal relationship as described above. Therefore, particularly the drive side is obliged to execute a complicated authentication process. Consequently, the load of the process on the drive side is increased unfavorably.

[0039] Meanwhile, in recent years, it has been begun to develop a kind of business of renting a set top box (STB) at a moderate price. As the development of the business just described proceeds, an illegal user has appeared who not only illegally copy data recorded on the hard disk drive in the STB but also removes the hard disk drive itself and illegally diverts it as a drive of a personal computer.

[0040] As a countermeasure against such an illegal user as just described, it is demanded to adopt a mutual authentication method such as the DTCP described above.

[0041] However, in the DTCP, the authentication process is very complicated and the load of the processing on the drive side is heavy as described above. Therefore, it is demanded to prevent such illegal diversion as described above with certainty by simpler and easier processing without increasing the load on the drive side.

SUMMARY OF THE INVENTION

[0042] It is an object of the present invention to provide a technique which can protect data from illegal accessing without increasing the load of processing on the drive side, prevent not only illegal copying on the data recording apparatus (drive) side but also an illegal action on the access apparatus (host unit) side with certainty to protect the copyright with certainty and further prevent illegal diversion of the data recording apparatus with certainty.

[0043] In order to attain the object described above, according to an aspect of the present invention, there is provided a data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses the data recording apparatus, data of the data recording apparatus from illegal accessing, comprising a step by the access apparatus of executing authentication of the data recording apparatus, a step of encrypting, when the data recording apparatus is authenticated, a contents key with access apparatus identification information registered in advance in a storage area of the access apparatus and a session key and first identification information read out from a storage area of the data recording apparatus, a step of transferring the encrypted contents key from the access apparatus to the data recording apparatus in order to write the encrypted contents key into the data recording apparatus, a step by the access apparatus of encrypting contents data to be recorded and stored into the data recording apparatus with the contents key, and a step of transferring the encrypted contents data from the access apparatus to the data recording apparatus in order to write the encrypted contents data into the data recording apparatus.

[0044] According to another aspect of the present invention, there is provided a data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses the data recording apparatus, data of the data recording apparatus from illegal accessing, comprising a step of writing contents data encrypted with a contents key into the data recording apparatus and writing the contents key, which is encrypted with predetermined access apparatus identification information and a session key and first identification information registered in advance in a storage area of the data recording apparatus, into the data recording apparatus, a step by the access apparatus of executing authentication of the data recording apparatus, a step of reading out, when the data recording apparatus is authenticated, the encrypted contents data and the encrypted contents key from the data recording apparatus and transferring the encrypted contents data and the encrypted contents key to the access apparatus, a step by the access apparatus of decrypting the encrypted contents key with the access apparatus identification information registered in advance in a storage area of the access apparatus and the session key and first identification information read out from the storage area of the data recording apparatus, and a step of decrypting the encrypted contents data with the decrypted contents key.

[0045] According to a further aspect of the present invention, there is provided a data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses the data recording apparatus, data of the data recording apparatus from illegal accessing, comprising a step of transferring access apparatus identification information, which is registered in advance in a storage area of the access apparatus connected first to the data recording apparatus when the data recording apparatus is in an initial state, from the access apparatus to the data recording apparatus and writing the access apparatus identification information into a writable-once storage area, a step by the data recording apparatus of performing, every time the access apparatus thereafter accesses the data recording apparatus, authentication of the access apparatus based on the access apparatus identification information written in the writable-once storage area, a step by the access apparatus of performing authentication of the data recording apparatus when the access apparatus is authenticated, a step of encrypting, when the data recording apparatus is authenticated and contents data is to be recorded and stored into the data recording apparatus, a contents key with a session key and first identification information read out from the storage area of the data recording apparatus, a step of transferring the encrypted contents key from the access apparatus to the data recording apparatus in order to write the encrypted contents key into the data recording apparatus, a step by the access apparatus of encrypting the contents data to be recorded and stored into the data recording apparatus with the contents key, and a step of transferring the encrypted contents data from the access apparatus to the data recording apparatus in order to write the encrypted contents data into the recording apparatus.

[0046] The data protection method may further comprise a step of reading out and transferring, when both of the access apparatus and the data recording apparatus are authenticated and contents data is to be read out from the data recording apparatus, the encrypted contents data and the encrypted contents key from the data recording apparatus to the access apparatus, a step by the access apparatus of decrypting the encrypted contents key with the session key and first identification information read out from the storage area of the data recording apparatus, and a step of decrypting the encrypted contents data with the decrypted contents key.

[0047] Further, the step of performing authentication of the access apparatus may include a step by the data recording apparatus of generating a random number, a step of transferring the random number from the data recording apparatus to the access apparatus, a step by the data recording apparatus of encrypting the access apparatus identification information with the random number, a step by the access apparatus of encrypting the access apparatus identification information with the random number from the data recording apparatus, a step of transferring the encrypted access apparatus identification information from the access apparatus to the data recording apparatus, and a step of comparing the encrypted access apparatus identification information from the access apparatus and the access apparatus identification information encrypted by the data recording apparatus with each other to discriminate whether or not the encrypted access apparatus identification information and the access apparatus identification information encrypted by the data recording apparatus coincide with each other, the access apparatus being authenticated when it is discriminated that the encrypted access apparatus identification information and the access apparatus identification information encrypted by the data recording apparatus coincide with each other.

[0048] According to the present invention, when the access apparatus (host unit) writes contents data and a contents key into the data recording apparatus, since the contents key is encrypted with not only the identification information of the data recording but also a factor of the access apparatus identification information (host ID) added thereto, only the original access apparatus which has written the contents data and the contents key into the data recording apparatus can read out the contents data. In particular, even if an access apparatus other than the original access apparatus reads out the contents data from the data recording apparatus, since the identification information of this access apparatus is different from that of the original access apparatus, the contents key cannot be decrypted correctly. Consequently, the contents data cannot be decrypted correctly and cannot be read out. Accordingly, the data of the data recording apparatus can be protected from illegal accessing without increasing the load of processing on the data recording apparatus side by adopting the unidirectional authentication of the CPPM, the CPRM or the like. Consequently, not only illegal copying on the data recording apparatus side but also illegal readout or illegal copying of data by impersonation or the like on the access apparatus side can be prevented with certainty, and reliable protection of the copyright can be anticipated.

[0049] Further, according to the present invention, identification information (a host ID) of the access apparatus (host unit) connected first to the data recording apparatus (drive) when the data recording apparatus is in an initial state is written into the writable-once storage area in the data recording apparatus. Thereafter, it is authenticated whether or not the access apparatus, which has accessed the data recording apparatus, is an access apparatus (original host) connected first to the data recording apparatus, based on the identification information written in the storage area. Then, only if it is authenticated that the access apparatus is the original access apparatus, then accessing (data writing/readout) to the data recording apparatus is authorized.

[0050] Consequently, only if a very simple authentication process is executed on the data recording apparatus side, then an access apparatus other than the original access apparatus cannot access the data recording apparatus. Accordingly, the data of the data recording apparatus can be protected from illegal accessing without increasing the load of processing on the data recording apparatus side, and not only illegal copying on the data recording apparatus side but also illegal readout and illegal copying of data by impersonation or the like on the access apparatus side can be prevented with certainty, and reliable protection of the copyright can be anticipated.

[0051] Further, since only the original access apparatus connected first to the data recording apparatus can access the data recording apparatus, such illegal diversion of the data recording apparatus that, for example, a hard disk drive (data recording apparatus) is dismounted from a set top box (STB) and is diverted in a system other than the STB can be prevented with certainty.

[0052] It is to be noted that, by combining the technique, wherein identification information of an access apparatus connected first is written into a writable-once storage area of a data recording apparatus and the identification information is used to perform authentication of the access apparatus, with the technique, wherein a contents key to be written into the data recording apparatus is encrypted using the identification information of the data recording apparatus and the identification information of the access apparatus, even if some measures are taken to illegally pass the authentication of the access apparatus, any access apparatus other than the original access apparatus cannot decrypt the contents key read out from the data recording apparatus nor can read out the contents data. Accordingly, illegal readout and illegal copying of data by impersonation or the like on the access apparatus side can be prevented with more certainty.

[0053] The above and other objects, features and advantages of the present invention will become apparent from the following description and the appended claims, taken in conjunction with the accompanying drawings in which like parts or elements are denoted by like reference characters.

BRIEF DESCRIPTION OF THE DRAWINGS

[0054]FIG. 1 is a block diagram showing a functional configuration of a data protection system (an access apparatus and a data recording apparatus) to which a data protection method as a first embodiment of the present invention is applied;

[0055]FIG. 2 is a block diagram illustrating essential part of contents data writing operation in the data protection system of the first embodiment;

[0056]FIG. 3 is a diagrammatic view illustrating a contents data writing procedure in the first embodiment;

[0057]FIG. 4 is a block diagram showing essential part of contents data reading operation in the data protection system of the first embodiment;

[0058]FIG. 5 is a diagrammatic view illustrating a contents data reading procedure in the first embodiment;

[0059]FIG. 6 is a block diagram showing a functional configuration of a data protection system (an access apparatus and a data recording apparatus) to which a data protection method as a second embodiment of the present invention is applied;

[0060]FIG. 7 is a block diagram illustrating essential part of contents data writing operation in the data protection system of the second embodiment;

[0061]FIG. 8 is a diagrammatic view illustrating a contents data writing procedure in the second embodiment;

[0062]FIG. 9 is a block diagram showing essential part of contents data reading operation in the data protection system of the second embodiment; and

[0063]FIG. 10 is a diagrammatic view illustrating a contents data reading procedure in the second embodiment.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0064] In the following, embodiments of the present invention are described with reference to the drawings.

[0065] [1] Description of the First Embodiment

[0066]FIG. 1 is a block diagram showing a functional configuration of a data protection system (an access apparatus and a data recording apparatus) to which a data protection method as a first embodiment of the present invention is applied. Referring to FIG. 1, the data protection system in the first embodiment protects, when data transmission between a drive (for example, a HDD) 100 as a data recording apparatus which records and stores data and a host unit (for example, a CPU) 200 as an access apparatus which accesses the drive 100 is performed, data of the drive 100 from illegal accessing.

[0067] The drive 100 includes a ROM 110, a hidden area 120, encryption sections 131 and 132, transfer sections 141 to 143, and a storage section 150.

[0068] The ROM (Read Only Memory; a first storage area) 110 stores session keys, a first drive ID (first identification information) and a second drive ID (second identification information) registered in advance. The hidden area 120 stores a drive key (secret key) registered in advance therein.

[0069] The encryption section 131 encrypts the second drive ID read out from the ROM 110 using a random number from the host unit 200. The encryption section 132 further encrypts an encryption result by the encryption section 131 using the drive key (secret key) read out from the hidden area 120.

[0070] The encryption sections 131 and 132 function as first encryption means which encrypts, in response to a request from the host unit 200, the second drive ID using a random number transmitted from the host unit 200 together with the request and the drive key (secret key) of the drive 100.

[0071] The transfer section (first transfer means) 141 reads out the session keys, first drive ID and second drive ID from the ROM 110 in response to a request from the host unit 200 and transmits them to the host unit 200.

[0072] The transfer section (second transfer means) 142 transmits the second drive ID encrypted by the encryption sections 131 and 132 to the host unit 200.

[0073] The transfer section (third transfer means) 143 reads out encrypted contents data and an encrypted contents key from the storage section 150 in response to a request from the host unit 200 and transmits them to the host unit 200.

[0074] The storage section 150 is a disk medium itself of the drive 100, and stores contents data and a contents key written from the host unit 200 and includes a key file 151 for storing the contents key and a data file 152 for storing the contents data. It is to be noted that the contents data to be stored in the storage section 150 is encrypted with the contents key. The contents key to be stored in the storage section 150 is, as hereinafter described, encrypted with a host ID (predetermined access apparatus identification information), the session key and the first drive ID of the drive 100.

[0075] The host unit 200 includes a RAM 210, a ROM 220, a random number generation section 230, encryption sections 241 to 247, a comparison discrimination section 250, transfer sections 261 to 263, and decryption sections 271 to 273.

[0076] The RAM (Random Access Memory) 210 temporarily stores the session keys and first drive ID transmitted from the drive 100. The ROM (Read Only Memory; a second storage area) 220 stores the host ID (access apparatus identification information) which is registered in advance and is identification information unique to the host unit 200.

[0077] The random number generation section (first random number generation means) 230 generates a random number when the host unit 200 accesses the drive 100.

[0078] The encryption section 241 encrypts the raw second drive ID transferred from the drive 100 using the random number generated by the random number generation section 230. The encryption section 242 encrypts the first drive ID stored in the RAM 210 using session keys stored in the RAM 210 to generate a drive key (equivalent), and outputs the drive key (equivalent). The encryption section 243 further encrypts the encryption result by the encryption section 241 using the drive key (equivalent) from the encryption section 242.

[0079] The encryption sections 241 to 243 function as second encryption means which encrypts the second drive ID read out from the ROM 110 of the drive 100 using not only the random number generated by the random number generation section 230 but also the session keys and first drive ID read out from the ROM 110 of the drive 100.

[0080] The comparison discrimination section (first comparison discrimination means) 250 compares the encrypted second drive ID transferred from the drive 100 through the transfer section 142 and the second drive ID encrypted by the encryption sections 241 to 243, and discriminates whether or not they are coincident.

[0081] If the comparison discrimination section 250 discriminates that the two second drive IDs are coincident with each other when the host unit 200 records and stores the contents data into the drive 100 (storage section 150), then the encryption sections 244 to 247 and transfer sections 261 to 263 hereinafter described operate. Further, if the comparison discrimination section 250 discriminates that the two second drive IDs are coincident with each other when the host unit 200 reads out the contents data from the drive 100 (the storage section 150), then the decryption sections 271 to 273 are hereinafter described operate.

[0082] The encryption section 244 encrypts the host ID stored in the ROM 220 using the session keys stored in the RAM 210 to produce a host key and outputs the host key. The encryption section 245 encrypts a contents key using the host key which is an encryption result of the encryption section 244. The encryption section 246 further encrypts an encryption result of the encryption section 245 using the drive key (equivalent) from the encryption section 242.

[0083] If the comparison discrimination section 250 discriminates that the two second drive IDs are coincident with each other, then the encryption sections 244 to 246 and encryption section 242 described above function as third encryption means which encrypts the contents key using the host ID readout from the ROM 220, and the session keys and first drive ID stored in the RAM 210.

[0084] The encryption section (fourth encryption means) 247 encrypts the contents data to be recorded and stored into the drive 100 using the contents key.

[0085] The transfer section (fourth transfer means) 261 transfers the random number generated by the random number generation section 230 to the drive 100 (encryption section 131).

[0086] The transfer section (fifth transfer means) 262 transfers the contents key encrypted by the encryption sections 242 and 244 to 246 to the drive 100 in order to write the encrypted contents data into the storage section 150 (key file 151) of the drive 100.

[0087] The transfer section (sixth transfer means) 263 transfers the contents data encrypted by the encryption section 247 to the drive 100 in order to write the encrypted contents data into the storage section 150 (data file 152) of the drive 100.

[0088] The decryption section 271 decrypts the encrypted contents key read out from the storage section 150 (key file 151) of the drive 100 using the drive key (equivalent) from the encryption section 242. The decryption section 272 further decrypts the decryption result by the decryption section 271 using the host key from the encryption section 244.

[0089] If the comparison discrimination section 250 discriminates that the two second drive IDs are coincident with each other, then the decryption sections 271 and 272 described above function as first decrypting means which decrypts the encrypted contents key read out from the storage section 150 (key file 151) of the drive 100 using the host ID read out from the ROM 220 and the session keys and first drive ID stored in the RAM 210.

[0090] The decryption section (second decrypting means) 273 decrypts the encrypted contents data read out from the storage section 150 (data file 152) of the drive 100 using the contents key decrypted by the decryption sections 271 and 272.

[0091] The functions the random number generation section 230, encryption sections 241 to 247, comparison discrimination section 250, transfer sections 261 to 263 and decryption sections 271 to 273 of the host unit 200 described above as are implemented by software (an access program) for exclusive use.

[0092] The access program is distributed in a form wherein it is recorded on a computer-readable recording medium such as, for example, a flexible disk or a CD-ROM. In the first embodiment, the access program is stored in advance in a ROM (Read Only Memory) or the like which is a component of the host unit 200. This access program is read out by a CPU of a component of the host unit 200 and executed to implement the functions as the random number generation section 230, encryption sections 241 to 247, comparison discrimination section 250, transfer sections 261 to 263 and decryption section 271 to 273 described above. It is to be noted that the access program may be recorded in advance in a storage apparatus (recording medium) such as, for example, a magnetic disk, an optical disk or a magneto-optical disk and distributed from the storage apparatus to a computer through a communication path. Also the functions of the drive 100 as the encryption sections 131 and 132 and transfer sections 141and 142 are implemented by software for exclusive use.

[0093] While the drive 100 includes the transfer sections 141 to 143 for individual kinds of data to be transferred from the drive 100 to the host unit 200, actually the functions as the transfer sections 141 to 143 may be integrated so that they may be implemented by one transfer section. Also the functions as the encryption sections 131 and 132 may be integrated so that they may be implemented by one encryption section.

[0094] Similarly, while the host unit 200 includes the transfer sections 261 to 263 for individual kinds of data to be transferred from the host unit 200 to the drive 100, actually the functions as the transfer sections 261 to 263 may be integrated so that they may be implemented by one transfer section. Also the functions as the encryption sections 241 to 247 may be integrated so that they may be integrated by one encryption section. Further, also the functions as the decryption sections 271 to 273 may be integrated so that they may be implemented by one decryption section.

[0095] Now, operation of the data protection system of the first embodiment configured as described above is described with reference to FIGS. 2 to 5. FIG. 2 is a block diagram showing essential part of contents data writing operation in the data protection system of the first embodiment. FIG. 3 is a diagrammatic view illustrating a contents data writing procedure in the first embodiment. FIG. 4 is a block diagram showing essential part of contents data readout operation in the data protection system of the first embodiment. FIG. 5 is a diagrammatic view illustrating a contents data readout procedure in the first embodiment.

[0096] In the first embodiment, the contents key is encrypted using the ID unique to the host unit when the contents data and the contents key are written although the method of the CPRM described above is used. In particular, in the first embodiment, the first drive ID and second drive ID unique to the drive are set in the drive 100, and the host ID unique to the host unit is set in the host unit 200. Further, writing operation of the contents data from the host unit 200 into the drive 100 (storage section 150) is performed by a procedure described below [steps (A1) to (A11)]. It is to be noted that, in FIGS. 2 and 3, reference characters (A1) to (A11) are entered as symbols at portions wherein processes corresponding to the steps (A1) to (A11) are executed.

[0097] (A1) The host unit 200 issues a request for transfer of the session keys (a plurality of media key blocks, and a plurality of secret keys) and the first drive ID (static ID) stored in the region of the ROM 110 area in the drive 100 to the drive 100.

[0098] (A2) The session keys and the first drive ID are read out from the ROM 110 and transferred from the drive 100 to the host unit 200 in accordance with the request in step (A1) (the function of the transfer section 141 of FIG. 1).

[0099] (A3) The session keys and the first drive ID from the drive 100 are stored into the RAM 210 of the host unit 200.

[0100] (A4) A random number is generated by the random number generation section 230 of the host unit 200 side and is transferred to the drive 100 (the function of the transfer section 261 of FIG. 1). At the same time, the host unit 200 issues a request for transfer of a raw second drive ID (dynamic ID) and the second drive ID encrypted with the random number just described to the drive 100.

[0101] (A5) The encryption sections 131 and 132 encrypt the second drive ID using the random number from the host unit 200 and the drive key (secret key) written in the hidden area 120 in accordance with the request in step (A4). Therefore, the raw second drive ID and the encrypted second drive ID are transferred from the drive 100 to the host unit 200 (the functions of the transfer sections 141 and 142 of FIG. 1).

[0102] (A6) In the host unit 200, the encryption section 242 produces a drive key (equivalent) based on the session keys and first drive ID stored in step (A3), and encrypts the raw second drive ID from the drive 100 using the drive key and the random number generated in step (A4). Thereafter, the comparison discrimination section 250 compares the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive 100 with each other to discriminate whether or not they are coincident with each other. In the first embodiment, authentication of the drive 100 is performed on the host unit 200 side in steps (A1) to (A6) described above.

[0103] (A7) If it is discriminated in step (A6) that the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive are coincident, then it is discriminated that the authentication of the drive 100 results in success, and the encryption sections 242 and 244 to 246 encrypt the contents key using the host ID read out from the ROM 220 and the session keys and first drive ID stored in the RAM 210. In particular, the contents key is encrypted using not only a host key generated from the host ID but also the session keys, and the drive key (equivalent) generated from the first drive ID and the session keys.

[0104] (A8) The contents key encrypted in step (A7) is transferred from the host unit 200 to the drive 100 (the function of the transfer section 262 of FIG. 1), and is written into the storage section 150 (key file 151) of the drive 100.

[0105] (A9) If it is discriminated in step (A6) that the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive 100 are coincident with each other, then the encryption section 247 encrypts, concurrently to the processes in steps (A7) and (A8), contents data to be written into the drive 100 using the contents key.

[0106] (A10) The contents data encrypted in step (A9) is transferred from the host unit 200 to the drive 100 (the function of the transfer section 263 of FIG. 1), and is written into the storage section 150 (data file 152) of the drive 100.

[0107] (A11) If it is discriminated in step (A6) that the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive 100 are not coincident with each other, then it is discriminated that the authentication of the drive 100 results in failure, and the processing is interrupted without executing the processes in steps (A7) to (A10).

[0108] When the contents data written in the storage section 150 of the drive 100 is read out from the drive 100 to the host unit 200, in the first embodiment, the contents data is readout by a procedure hereinafter described [steps (B1) to (B6)] after authentication of the drive 100 is performed in accordance with the steps (A1) to (A6) similar to those of the procedure described above. It is to be noted that, in FIGS. 4 and 5, reference characters (A1) to (A6) and (B1) to (B5) are entered as symbols at portions wherein processes corresponding to the steps (A1) to (A6) and (B1) to (B5) are executed, respectively. Here, since the drive authentication procedure in steps (A1) to (A6) is similar to the procedure described above, description of this procedure is omitted to avoid redundancy.

[0109] (B1) If it is discriminated in step (A6) that the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive are coincident with each other, then it is discriminated that authentication of the drive results in success, and then the host unit 200 issues a request for readout of an encrypted contents key and encrypted contents data to the drive 100.

[0110] (B2) The drive 100 reads out the encrypted key and the encrypted contents data from the storage section 150 in response to the request in step (B1) and transfers them to the host unit 200 (the function of the transfer section 143 of FIG. 1).

[0111] (B3) In the host unit 200, the decryption sections 271 and 272 decrypt the encrypted contents key read out from the storage section 150 (key file 151) of the drive 100 using the host ID read out from the ROM 220 and the session keys and first drive ID stored in the RAM 210. In particular, the encrypted contents key is decrypted using the host key generated from the host ID and the session keys and the drive key (equivalent) generated from the first drive ID and the session keys.

[0112] (B4) Then, the decryption section 273 decrypts the encrypted contents data read out from the storage section 150 (data file 152) of the drive 100 using the contents key decrypted by the decryption sections 271 and 272.

[0113] (B5) If it is discriminated in step (A6) that the second drive ID encrypted on the host unit 200 side and the encrypted second drive ID from the drive are not coincident with each other, then it is discriminated that the authentication of the drive results in failure, and the processing is interrupted without executing the processes in steps (B1) to (B4) described above.

[0114] (B6) If a host unit different from the host unit 200 which has encrypted and written the contents key into the drive 100 tries to decrypt the contents key, then a host ID utilized for decryption in this instance is different from the host ID utilized for encryption. In such a case, since a correct contents key is not restored in step (B3), the encrypted contents data cannot be decrypted in step (B4). Consequently, the host unit 200 cannot obtain original contents data.

[0115] In this manner, in the data protection system as the first embodiment of the present invention, when the host unit 200 writes contents data and a contents key into the drive 100, since the contents key is encrypted with not only the identification information (first drive ID) of the drive 100 but also a factor of the host ID added thereto, only the original host unit 200 which has written the contents data and the contents key into the drive 100 can read out the contents data.

[0116] In particular, even if a host unit (such as a CPU) other than the original host unit 200 reads out the contents data from the drive 100, since identification information (host ID) of this host unit is different from that of the original host unit 200, correct decryption of the contents key is impossible. Consequently, the contents data cannot be correctly decrypted, and the contents data cannot be read out.

[0117] Accordingly, a form of dedicated connection wherein the host unit 200 and the drive 100 correspond in a one-to-one corresponding relationship to each other is implemented without increasing the load of processing on the drive 100 side by adopting unidirectional authentication by the CPPM, CPRM or the like, and the data of the drive 100 can be protected from illegal accessing. Consequently, not only illegal copying on the drive 100 side but also illegal readout and illegal copying of data by impersonation or the like on the host 200 side can be prevented with certainty, and reliable protection of the copyright can be anticipated.

[0118] [2] Description of the Second Embodiment

[0119]FIG. 6 is a block diagram showing a functional configuration of a data protection system (an access apparatus and a data recording apparatus) to which a data protection method as the second embodiment of the present invention is applied. While also the data protection system of the second embodiment is configured substantially similarly to that of the first embodiment, as shown in FIG. 6, a drive (data recording apparatus) 100A of the data protection system in the second embodiment includes, in addition to the drive 100 of the first embodiment, an encryption section 133, a transfer section 144, a writable-once storage area 160, a random number generation section 170, and a comparison discrimination section 180. Further, a host unit (access apparatus) 200A of the data protection system in the second embodiment includes, in addition to the host unit 200 of the first embodiment, an encryption section 248, and a transfer sections 264 and 265. It is to be noted that, in FIG. 6, like reference characters to those of FIG. 1, 2 or 4 denote like elements to those described above, and overlapping description of them is omitted herein to avoid redundancy.

[0120] Here, in the drive 100A, the writable-once storage area 160 is an area into which a host ID of the host unit 200A connected first to the drive 100A when the drive 100A is in an initial state is written and into which data can be written only once.

[0121] The random number generation section (second random number generation means) 170 generates a random number every time it is accessed from the host unit 200A.

[0122] The transfer section (seventh transfer means) 144 transfers the random number generated by the random number generation section 170 to the host unit 200A.

[0123] The encryption section (fifth encryption means) 133 encrypts the host ID readout from the writable-once storage area 160 using the random number generated by the random number generation section 170.

[0124] The comparison discrimination section (second comparison discrimination means) 180 compares the host ID encrypted by the encryption section 133 and an encrypted host ID transferred thereto from the host unit 200A as hereinafter described, and discriminates whether or not they are coincident with each other.

[0125] In the host unit 200A, the encryption section (sixth encryption means) 248 encrypts the host ID stored in the ROM 220 using the random number transferred thereto from the drive 100A through the transfer section 144.

[0126] The transfer section (eighth transfer means) 264 reads out, in order to write the host ID into the writable-once storage area 160 when the host unit 200A is connected first to the drive 100A which is in an initial state, the host ID from the ROM 220 and transfers it to the drive 100A.

[0127] The transfer section (ninth transfer means) 265 transfers the host ID encrypted by the encryption section 248 to the drive 100A (comparison discrimination section 180) every time the host unit 200A accesses the drive 100A.

[0128] In the data protection system of the second embodiment, if both of the comparison discrimination sections 250 and 180 discriminate that the identification information is coincident when the host unit 200A records and stores the contents data into the drive 100A (storage section 150), then the encryption sections 242 and 244 to 247 and the transfer sections 262 and 263 operate. Further, if the comparison discrimination section 250 discriminates that the two second drive IDs are coincident with each other when the host unit 200A reads out the contents data from the drive 100A (storage section 150), then the decryption sections 271 to 273 hereinafter described operate.

[0129] Also the functions as the encryption section 133, transfer section 144, random number generation section 170, and comparison discrimination section 180 which are newly added in the drive 100A of the second embodiment described above are implemented by software for exclusive use. Similarly, the functions as the encryption section 248 and transfer sections 264 and 265 which are newly added in the host unit 200A of the second embodiment are implemented by software (an access program) for exclusive use.

[0130] It is to be noted that, in the drive 100A, the function as the transfer section 144 may be integrated with the functions as the transfer sections 141 to 143 described in the first embodiment so that they may be implemented by one transfer section. Further, the function as the encryption section 133 may be integrated with the encryption sections 131 and 132 described in the first embodiment so that they may be implemented by one encryption section.

[0131] Similarly, in the host unit 200A, the functions as the transfer sections 264 and 265 may be integrated with the functions as the transfer sections 261 to 263 described in the first embodiment so that they may be implemented by one transfer section. Further, the function as the encryption section 248 may be integrated with the functions as the encryption sections 241 to 247 described in the first embodiment so that they may be implemented by one encryption section.

[0132] Now, operation of the data protection system of the second embodiment configured in such a manner as described above is described with reference to FIGS. 7 to 10. FIG. 7 is a block diagram showing components relating to contents data writing operation in the data protection system of the second embodiment. FIG. 8 is a diagrammatic view illustrating a contents data writing procedure in the second embodiment. FIG. 9 is a block diagram showing components relating to contents data reading operation in the data protection system of the second embodiment. FIG. 10 is a diagrammatic view illustrating a contents data reading procedure in the second embodiment.

[0133] In the second embodiment, while the host unit 200A accesses the drive 100A using a procedure similar to that of the first embodiment described above, authentication of the host unit 200A is executed by a procedure [steps (C1) to (C7)] described below on the drive 100A side prior to such accessing. Writing of the contents data from the host unit 200A into the drive 100A (storage section 150) is executed by a procedure [steps (C8) to (C18)] similar to that of the first embodiment after authentication of the host unit 200A is executed. It is to be noted that, in FIGS. 7 to 8, reference characters (C1) to (C18) are entered as symbols at points wherein processes corresponding to the steps (C1) to (C18) are executed.

[0134] (C1) The host unit 200A discriminates, upon accessing to the drive 100A, whether or not the drive 100A (writable-once storage area 160) is in an initial state wherein nothing is written therein. If it is discriminated that the writable-once storage area 160 is in an initial state, then the host ID is read out from the ROM 220 and transferred from the host unit 200A to the drive 100A (the function of the transfer section 264 of FIG. 6).

[0135] (C2) The host ID transferred from the host unit 200A to the drive 100A in step (C1) is written and stored into the writable-once storage area 160. The host ID written in the storage area 160 in this manner is hereinafter referred to as a host ID-1.

[0136] (C3) After the steps (C1) and (C2) described above are executed, or if it is discriminated that the drive 100A is not in an initial state in step (C1), the host unit 200A issues a request for host authentication to the drive 100A.

[0137] (C4) The drive 100A receives the request for host authentication from the host unit 200A and generates a random number by the random number generation section 170 and then transfers it to the host unit 200A (the function of the transfer section 144 of FIG. 6). Further, the drive 100A issues a request for transfer of the host ID encrypted with the random number to the host unit 200A. Further, the encryption section 133 encrypts the host ID-1 written in the storage area 160 using the random number generated by the random number generation section 170.

[0138] (C5) The encryption section 248 encrypts the host ID stored in the ROM 220 (this host ID is hereinafter referred to as host ID-2) using the random number from the drive 100A in response to the request in step (C4). Thereafter, the encrypted host ID-2 is transferred from the host unit 200A to the drive 100A (the function of the transfer section 265 of FIG. 6).

[0139] (C6) Then, the comparison discrimination section 180 of the drive 100A compares the host ID-1 encrypted in step (C4) and the encrypted host ID-2 from the host unit 200A with each other to discriminate whether or not they are coincident with each other. In the second embodiment, after the host ID-1 is written into the storage area 160 of the drive 100A which is in an initial state in steps (C1) and (C2), host authentication is executed in the drive 100A based on the host ID-1 written in the storage area 160 every time the host unit 200A or any other host unit accesses the drive 100A.

[0140] (C7) If it is discriminated in step (C6) that the encrypted host ID-1 and the encrypted host ID-2 are not coincident, then it is discriminated that host authentication results in failure, and the processing is interrupted.

[0141] If it is discriminated in step (C6) that the encrypted host ID-1 and the encrypted host ID-2 are coincident, then it is discriminated that authentication of the host unit 200A results in success, and writing of the contents data is executed from the host unit 200A into the drive 100A (storage section 150) similarly as in the processing in the first embodiment. It is to be noted that steps (C8) to (C18) described below correspond to steps (A1) to (A11) of the first embodiment, respectively.

[0142] (C8) A request for transfer of the session keys (a plurality of media key blocks, and a plurality of secret keys) and first drive ID (static ID) stored in the ROM 110 area in the drive 100A is issued from the host unit 200A to the drive 100A.

[0143] (C9) In response to the request in step (C8), the session keys and the first drive ID are read out from the ROM 110 and transferred from the drive 100A to the host unit 200A (the function of the transfer section 141 of FIG. 6).

[0144] (C10) The session keys and first drive ID from the drive 100A are stored into the RAM 210 of the host unit 200A.

[0145] (C11) A random number is generated by the random number generation section 230 on the host unit 200A side and is transferred to the drive 100A (the function of the transfer section 261 of FIG. 6). At the same time, the host unit 200A issues a request for transfer of a raw second drive ID (dynamic ID) and the second drive ID encrypted with the random number just described to the drive 100A.

[0146] (C12) The encryption sections 131 and 132 encrypt the second drive ID using the random number from the host unit 200A and the drive key (secret key) written in the hidden area 120 in accordance with the request in step (C11). Then, the raw second drive ID and the encrypted second drive ID are transferred from the drive 100A to the host unit 200A (the functions of the transfer sections 141 and 142 of FIG. 6).

[0147] (C13) In the host unit 200A, the encryption section 242 produces a drive key (equivalent) based on the session keys and first drive ID stored in step (C10), and encrypts the raw second drive ID from the drive 100A using the drive key and the random number generated in step (C11). Thereafter, the comparison discrimination section 250 compares the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A with each other to discriminate whether or not they are coincident with each other. In the second embodiment, authentication of the drive 100A is performed through steps (C8) to (C13) described above.

[0148] (C14) If it is discriminated in step (C13) that the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A are coincident with each other, then it is discriminated that the authentication of the drive 100A results in success, and the encryption sections 242 and 244 to 246 encrypt the contents key using the host ID read out from the ROM 220 and the session keys and first drive ID stored in the RAM 210. In particular, the contents key is encrypted with not only the host key generated from the host ID and the session keys but also the drive key (equivalent) generated from the first drive ID and the session keys.

[0149] (C15) The contents key encrypted in step (C14) is transferred from the host unit 200A to the drive 100A (the function of the transfer section 262 of FIG. 6) and is written into the storage section 150 (key file 151) of the drive 100A.

[0150] (C16) If it is discriminated in step (C13) that the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A are coincident with each other, then the encryption section 247 encrypts, concurrently to the processes in steps (C14) and (C15) described above, the contents data to be written into the drive 100A using the contents key.

[0151] (C17) The contents data encrypted in step (C16) is transferred from the host unit 200A to drive 100A (the function of the transfer section 263 of FIG. 6) and is written into the storage section 150 (data file 152) of the drive 100A.

[0152] (C18) If it is discriminated in step (C13) that the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A are not coincident with each other, then it is discriminated that the authentication of the drive 100A results in failure, and the processing is interrupted without executing the processes in steps (C14) to (C17) described above.

[0153] On the other hand, when the contents data written in the storage section 150 of the drive 100A as described above is read out from the drive 100A to the host unit 200A, in the second embodiment, authentication of the host unit 200A is executed on the drive 100A side in accordance with the steps (C1) to (C7) similar to those described above. Furthermore, after authentication of the drive 100A is executed on the host unit 200A side in accordance with the steps (C8) to (C13) similar to those described above, the contents data is read out by such a procedure [steps (D1) to (D5)] as described below.

[0154] It is to be noted that, in FIGS. 9 and 10, reference characters (C1) to (C13) and (D1) to (D4) are entered as symbols at portions wherein processes corresponding to steps (C1) to (C13) and (D1) to (D4) are executed, respectively. Here, since the host authentication procedure by steps (C1) to (C7) and the drive authentication procedure by steps (C8) to (C13) are similar to the processes described above, overlapping description of these procedures is omitted to avoid redundancy. It is to be noted that steps (D1) to (D5) described below correspond to the steps (B1) to (B5) in the first embodiment, respectively.

[0155] (D1) If it is discriminated in step (C13) that the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A are coincident with each other, then it is discriminated that the authentication of the drive 100A results in success, and the host unit 200A issues a request for readout of the encrypted contents key and the encrypted contents data to the drive 100A.

[0156] (D2) The drive 100A reads out the encrypted contents key and the encrypted contents data from the storage section 150 and transfers them to the host unit 200A in accordance with the request in step (D1) (the function of the transfer section 143 of FIG. 6).

[0157] (D3) In the host unit 200A, the decryption sections 271 and 272 decrypt the encrypted contents key read out from the storage section 150 (key file 151) of the drive 100A using the host ID read out from the ROM 220 and the session keys and first drive ID stored in the RAM 210. In particular, the encrypted contents key is decrypted using the host key generated from the host ID and the session keys and the drive key (equivalent) generated from the first drive ID and the session keys.

[0158] (D4) Then, the decryption section 273 decrypts the encrypted contents data read out from the storage section 150 (data file 152) of the drive 100A using the contents key decrypted by the decryption sections 271 and 272.

[0159] (D5) If it is discriminated in step (C13) that the second drive ID encrypted on the host unit 200A side and the encrypted second drive ID from the drive 100A are not coincident, then it is discriminated that the drive authentication results in failure, and the processing is interrupted without executing the processes in steps (D1) to (D4) described above.

[0160] In this manner, in the data protection system as the second embodiment of the present invention, the identification information (host ID-1) of the host unit 200A connected first to the drive 100A when the drive 100A is in an initial state is written into the writable-once storage area 160 in the drive 100A. Thereafter, it is authenticated whether or not a host unit 200A, which has accessed the drive 100A, is the host unit 200A connected first to the drive 100A (original host) is executed, based on the host ID-1 written in the storage area 160. Then, only if it is authenticated that the host unit 200A is the original host unit 200A, then accessing (data writing/readout) to the drive 100A is authorized.

[0161] Consequently, only if a very simple authentication process is executed on the drive 100A side, then a host unit other than the original host unit 200A cannot access the drive 100A. Accordingly, the data of the drive 100A can be protected from illegal accessing without increasing the load of processing on the drive 100A side, and not only illegal copying on the drive 100A side but also illegal readout and illegal copying of data by impersonation or the like on the host 200A side can be prevented with certainty, and reliable protection of copyright can be anticipated.

[0162] Further, since only the original host unit 200A connected first to the drive 100A can access the drive 100A, such illegal diversion of the drive 100A that, for example, a hard disk drive (data recording apparatus) is dismounted from a set top box (STB) and diverted in a system other than the STB can be prevented with certainty.

[0163] It is to be noted that, in the data protection system of the second embodiment, also the technique described in the first embodiment (that is, the technique wherein the contents key to be written into the drive 100A is encrypted with the first drive ID and the host ID) is incorporated. Consequently, even if some measures are used to illegally pass the host authentication, a host unit other than the original host unit 200A cannot decrypt the contents key read out from the drive 100A and cannot read out the contents data. Accordingly, illegal readout and illegal copying of data by impersonation or the like on the host unit 200A can be prevented with more certainty.

[0164] [3] Others

[0165] The present invention is not limited to the embodiment specifically described above, and variations and modifications can be made without departing from the scope of the present invention.

[0166] For example, while, in the data protection system of the second embodiment described above, the technique wherein the host authentication is executed on the drive 100A side for every accessing and the technique described in the first embodiment are combined, otherwise the technique wherein the host authentication is executed on the drive 100A side every accessing may be combined with an ordinary CPRM or CPPM. In particular, after steps (C1) to (C7) are executed, steps (a1) to (a8), (b1) and (b2) may be executed in place of steps (C8) to (C18) and (D1) to (D5) in the second embodiment. Also in this case, effects similar to those of the second embodiment can be obtained sufficiently.

[0167] Further, the drive authentication methods in the first embodiment and the second embodiment are not limited to the methods which use steps (A1) to (A6) and (C8) to (C13) described above. Similarly, also the host authentication method in the second embodiment is not limited to the method which use steps (C1) to (C7) described above. 

What is claimed is:
 1. A data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a step by said access apparatus of executing authentication of said data recording apparatus; a step of encrypting, when said data recording apparatus is authenticated, a contents key with access apparatus identification information registered in advance in a storage area of said access apparatus and a session key and first identification information read out from a storage area of said data recording apparatus; a step of transferring the encrypted contents key from said access apparatus to said data recording apparatus in order to write the encrypted contents key into said data recording apparatus; a step by said access apparatus of encrypting contents data to be recorded and stored into said data recording apparatus with the contents key; and a step of transferring the encrypted contents data from said access apparatus to said data recording apparatus in order to write the encrypted contents data into said data recording apparatus.
 2. A data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a step of writing contents data encrypted with a contents key into said data recording apparatus and writing the contents key, which is encrypted with predetermined access apparatus identification information and a session key and first identification information registered in advance in a storage area of said data recording apparatus, into said data recording apparatus; a step by said access apparatus of executing authentication of said data recording apparatus; a step of reading out, when said data recording apparatus is authenticated, the encrypted contents data and the encrypted contents key from said data recording apparatus and transferring the encrypted contents data and the encrypted contents key to said access apparatus; a step by said access apparatus of decrypting the encrypted contents key with the access apparatus identification information registered in advance in a storage area of said access apparatus and the session key and first identification information read out from the storage area of said data recording apparatus; and a step of decrypting the encrypted contents data with the decrypted contents key.
 3. The data protection method as claimed in claim 1, wherein the step of executing authentication of said data recording apparatus includes: a step of transferring the session key and the first identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said access apparatus of generating a random number; a step of transferring the random number from said access apparatus to said data recording apparatus; a step of transferring second identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said data recording apparatus of encrypting the second identification information with the random number from said access apparatus and a secret key of said data recording apparatus; a step of transferring the encrypted second identification information from said data recording apparatus to said access apparatus; a step by said access apparatus of encrypting the second identification information with the random number, session key and first identification information; and a step of comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said access apparatus with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other; said data recording apparatus being authenticated when it is discriminated that the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other.
 4. The data protection method as claimed in claim 2, wherein the step of executing authentication of said data recording apparatus includes: a step of transferring the session key and the first identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said access apparatus of generating a random number; a step of transferring the random number from said access apparatus to said data recording apparatus; a step of transferring second identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said data recording apparatus of encrypting the second identification information with the random number from said access apparatus and a secret key of said data recording apparatus; a step of transferring the encrypted second identification information from said data recording apparatus to said access apparatus; a step by said access apparatus of encrypting the second identification information with the random number, session key and first identification information; and a step of comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said access apparatus with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other; said data recording apparatus being authenticated when it is discriminated that the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other.
 5. A data protection system for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a first storage area provided in said data recording apparatus for storing a session key, first identification information and second identification information; first transfer means provided in said data recording apparatus for reading out and transferring at least one of the session key, first identification information and second identification information from said first storage area to said access apparatus in response to a request from said access apparatus; first encryption means provided in said data recording apparatus for encrypting, in response to a request from said access apparatus, the second identification information with a random number sent from said access apparatus together with the request and a secret key of said data recording apparatus; second transfer means provided in said data recording apparatus for transferring the second identification information encrypted by said first encryption means to said access apparatus; a storage section provided in said data recording apparatus for storing contents data and a contents key from said access apparatus when the contents data and the contents key are written; a second storage area provided in said access apparatus for storing access apparatus identification information of said access apparatus; first random number generation means provided in said access apparatus for generating the random number; fourth transfer means provided in said access apparatus for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means provided in said access apparatus for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means provided in said access apparatus for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; third encryption means provided in said access apparatus for encrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the contents key with the access apparatus identification information read out from said second storage area and the session key and first identification information; fifth transfer means provided in said access apparatus for transferring the contents key encrypted by said third encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus; fourth encryption means provided in said access apparatus for encrypting contents data to be recorded and stored into said data recording apparatus with the contents key; and sixth transfer means provided in said access apparatus for transferring the contents data encrypted by said fourth encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus.
 6. A data protection system for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a first storage area provided in said data recording apparatus for storing a session key, first identification information and second identification information; first transfer means provided in said data recording apparatus for reading out and transferring at least one of the session key, first identification information and second identification information from said first storage area to said access apparatus in response to a request from said access apparatus; first encryption means provided in said data recording apparatus for encrypting, in response to a request from said access apparatus, the second identification information with a random number sent from said access apparatus together with the request and a secret key of said data recording apparatus; second transfer means provided in said data recording apparatus for transferring the second identification information encrypted by said first encryption means to said access apparatus; a storage section provided in said data recording apparatus for storing contents data encrypted with a contents key and the contents key encrypted with the session key and first identification information after written therein in advance; third transfer means provided in said data recording apparatus for reading out and transferring the encrypted contents data and the encrypted contents key from said storage section to said access apparatus in response to a request from said access apparatus; a second storage area provided in said access apparatus for storing access apparatus identification information of said access apparatus; first random number generation means provided in said access apparatus for generating the random number; fourth transfer means provided in said access apparatus for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means provided in said access apparatus for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means provided in said access apparatus for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; first decryption means provided in said access apparatus for decrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the encrypted contents key read out from said storage section of said data recording apparatus with the access apparatus identification information read out from said second storage area and the session key and first identification information; and second decryption means provided in said access apparatus for decrypting the encrypted contents data read out from said storage section of said data recording apparatus with the contents key decrypted by said first decryption means.
 7. An access apparatus for accessing a data recording apparatus which includes a first storage area for storing a session key, first identification information and second identification information, first transfer means for reading out and transferring, in response to a request from an external apparatus, at least one of the session key, first identification information and second identification information from said first storage area to the external apparatus of the source of the request, first encryption means for encrypting, in response to the request from the external apparatus, the second identification information with a random number sent to said data recording apparatus together with the request and a secret key of said data recording apparatus, second transfer means for transferring the second identification information encrypted by said first encryption means to the external apparatus of the source of the request, and a storage section for storing contents data and a contents key from said access apparatus when the contents data and the contents key are written, said access apparatus comprising: a second storage area for storing access apparatus identification information of said access apparatus; first random number generation means for generating the random number; fourth transfer means for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; third encryption means for encrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the contents key with the access apparatus identification information read out from said second storage area and the session key and first identification information; fifth transfer means for transferring the contents key encrypted by said third encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus; fourth encryption means for encrypting contents data to be recorded and stored into said data recording apparatus with the contents key; and sixth transfer means for transferring the contents data encrypted by said fourth encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus.
 8. An access apparatus for accessing a data recording apparatus which includes a first storage area for storing a session key, first identification information and second identification information, first transfer means for reading out and transferring, in response to a request from an external apparatus, at least one of the session key, first identification information and second identification information from said first storage area to the external apparatus of the source of the request, first encryption means for encrypting, in response to the request from the external apparatus, the second identification information with a random number sent to said data recording apparatus together with the request and a secret key of said data recording apparatus, second transfer means for transferring the second identification information encrypted by said first encryption means to the external apparatus of the source of the request, a storage section for storing contents data encrypted with a contents key after written therein and storing the contents key encrypted with predetermined access apparatus identification information and the session key and first identification information after written therein, and third transfer means for reading out and transferring the encrypted contents data and the encrypted contents key from said storage section to the external apparatus of the source of the request in response to the request from the external apparatus, said access apparatus comprising: a second storage area for storing access apparatus identification information of said access apparatus; first random number generation means for generating the random number; fourth transfer means for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; first decryption means for decrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the encrypted contents key read out from said storage section of said data recording apparatus with the access apparatus identification information read out from said second storage area and the session key and first identification information; and second decryption means for decrypting the encrypted contents data read out from said storage section of said data recording apparatus with the contents key decrypted by said first decryption means.
 9. An access apparatus for accessing a data recording apparatus which includes a first storage area for storing a session key, first identification information and second identification information, first transfer means for reading out and transferring, in response to a request from an external apparatus, at least one of the session key, first identification information and second identification information from said first storage area to the external apparatus of the source of the request, first encryption means for encrypting, in response to the request from the external apparatus, the second identification information with a random number sent to said data recording apparatus together with the request and a secret key of said data recording apparatus, second transfer means for transferring the second identification information encrypted by said first encryption means to the external apparatus of the source of the request, a storage section for storing contents data encrypted with a contents key after written therein and storing the contents key encrypted with predetermined access apparatus identification information and the session key and first identification information after written therein, and third transfer means for reading out and transferring the encrypted contents data and the encrypted contents key from said storage section to the external apparatus of the source of the request in response to the request from the external apparatus, said access apparatus comprising: a second storage area for storing access apparatus identification information of said access apparatus; first random number generation means for generating the random number; fourth transfer means for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; third encryption means for encrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other and contents data is to be recorded and stored into said data recording apparatus, the contents key with the access apparatus identification information read out from said second storage area and the session key and first identification information; fifth transfer means for transferring the contents key encrypted by said third encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus; fourth encryption means for encrypting the contents data to be recorded and stored into said data recording apparatus with the contents key; sixth transfer means for transferring the contents data encrypted by said fourth encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus; first decryption means for decrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other and contents data is to be read out from said data recording apparatus, the encrypted contents key read out from said storage section of said data recording apparatus with the access apparatus identification information read out from said second storage area and the session key and first identification information; and second decryption means for decrypting the encrypted contents data read out from said storage section of said data recording apparatus with the contents key decrypted by said first decryption means.
 10. A computer-readable recording medium on which an access program is recorded for causing a computer to function as an access apparatus for accessing a data recording apparatus which includes a first storage area for storing a session key, first identification information and second identification information, first transfer means for reading out and transferring, in response to a request from an external apparatus, at least one of the session key, first identification information and second identification information from said first storage area to the external apparatus of the source of the request, first encryption means for encrypting, in response to the request from the external apparatus, the second identification information with a random number sent to said data recording apparatus together with the request and a secret key of said data recording apparatus, second transfer means for transferring the second identification information encrypted by said first encryption means to the external apparatus of the source of the request, and a storage section for storing contents data and a contents key from said access apparatus when the contents data and the contents key are written, said access program causing said computer to function as: first random number generation means for generating the random number; fourth transfer means for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; third encryption means for encrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the contents key with access apparatus identification information of said access apparatus and the session key and first identification information; fifth transfer means for transferring the contents key encrypted by said third encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus; fourth encryption means for encrypting contents data to be recorded and stored into said data recording apparatus with the contents key; and sixth transfer means for transferring the contents data encrypted by said fourth encryption means to said data recording apparatus so as to be written into said storage section of said data recording apparatus.
 11. A computer-readable recording medium on which an access program is recorded for causing a computer to function as an access apparatus for accessing a data recording apparatus which includes a first storage area for storing a session key, first identification information and second identification information, first transfer means for reading out and transferring, in response to a request from an external apparatus, at least one of the session key, first identification information and second identification information from said first storage area to the external apparatus of the source of the request, first encryption means for encrypting, in response to the request from the external apparatus, the second identification information with a random number sent to said data recording apparatus together with the request and a secret key of said data recording apparatus, second transfer means for transferring the second identification information encrypted by said first encryption means to the external apparatus of the source of the request, a storage section for storing contents data encrypted with a contents key after written therein and storing the contents key encrypted with predetermined access apparatus identification information and the session key and first identification information after written therein, and third transfer means for reading out and transferring the encrypted contents data and the encrypted contents key from said storage section to the external apparatus of the source of the request in response to the request from the external apparatus, said access program causing said computer to function as: first random number generation means for generating the random number; fourth transfer means for transferring the random number generated by said first random number generation means to said data recording apparatus; second encryption means for encrypting the second identification information read out from said first storage area of said data recording apparatus with the random number generated by said first random number generation means and the session key and first identification information read out from said first storage area of said data recording apparatus; first comparison discrimination means for comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said second encryption means with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other; first decryption means for decrypting, when said first comparison discrimination means discriminates that the encrypted second identification information and the second identification information encrypted by said second encryption means coincide with each other, the encrypted contents key read out from said storage section of said data recording apparatus with the access apparatus identification information of said access apparatus and the session key and first identification information; and second decryption means for decrypting the encrypted contents data read out from said storage section of said data recording apparatus with the contents key decrypted by said first decryption means.
 12. A data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a step of transferring access apparatus identification information, which is registered in advance in a storage area of said access apparatus connected first to said data recording apparatus when said data recording apparatus is in an initial state, from said access apparatus to said data recording apparatus and writing the access apparatus identification information into a writable-once storage area; a step by said data recording apparatus of performing, every time said access apparatus thereafter accesses said data recording apparatus, authentication of said access apparatus based on the access apparatus identification information written in said writable-once storage area; a step by said access apparatus of performing authentication of said data recording apparatus when said access apparatus is authenticated; a step of encrypting, when said data recording apparatus is authenticated and contents data is to be recorded and stored into said data recording apparatus, a contents key with a session key and first identification information read out from said storage area of said data recording apparatus; a step of transferring the encrypted contents key from said access apparatus to said data recording apparatus in order to write the encrypted contents key into said data recording apparatus; a step by said access apparatus of encrypting the contents data to be recorded and stored into said data recording apparatus with the contents key; and a step of transferring the encrypted contents data from said access apparatus to said data recording apparatus in order to write the encrypted contents data into said recording apparatus.
 13. The data protection method as claimed in claim 12, further comprising: a step of reading out and transferring, when both of said access apparatus and said data recording apparatus are authenticated and contents data is to be read out from said data recording apparatus, the encrypted contents data and the encrypted contents key from said data recording apparatus to said access apparatus; a step by said access apparatus of decrypting the encrypted contents key with the session key and first identification information read out from said storage area of said data recording apparatus; and a step of decrypting the encrypted contents data with the decrypted contents key.
 14. A data protection method for protecting, when data transfer is performed between a data recording apparatus for recording and storing data and an access apparatus which accesses said data recording apparatus, data of said data recording apparatus from illegal accessing, comprising: a step of transferring access apparatus identification information, which is registered in advance in a storage area of said access apparatus connected first to said data recording apparatus when said data recording apparatus is in an initial state, from said access apparatus to said data recording apparatus and writing the access apparatus identification information into a writable-once storage area; a step by said data recording apparatus of performing, every time said access apparatus thereafter accesses said data recording apparatus, authentication of said access apparatus based on the access apparatus identification information written in said writable-once storage area; a step by said access apparatus of performing authentication of said data recording apparatus when said access apparatus is authenticated; a step of encrypting, when said data recording apparatus is authenticated and contents data is to be recorded and stored into said data recording apparatus, a contents key with access apparatus identification information registered in advance in said storage area of said access apparatus and a session key and first identification information read out from said storage area of said data recording apparatus; a step of transferring the encrypted contents key from said access apparatus to said data recording apparatus in order to write the encrypted contents key into said data recording apparatus; a step by said access apparatus of encrypting the contents data to be recorded and stored into said data recording apparatus with the contents key; and a step of transferring the encrypted contents data from said access apparatus to said data recording apparatus in order to write the encrypted contents data into said recording apparatus.
 15. The data protection method as claimed in claim 14, further comprising: a step of reading out and transferring, when both of said access apparatus and said data recording apparatus are authenticated and contents data is to be read out from said data recording apparatus, the encrypted contents data and the encrypted contents key from said data recording apparatus to said access apparatus; a step by said access apparatus of decrypting the encrypted contents key with the access apparatus identification information registered in advance in said storage area of said access apparatus and the session key and first identification information read out from said storage area of said data recording apparatus; and a step of decrypting the encrypted contents data with the decrypted contents key.
 16. The data protection method as claimed in claim 12, wherein the step of performing authentication of said access apparatus includes: a step by said data recording apparatus of generating a random number; a step of transferring the random number from said data recording apparatus to said access apparatus; a step by said data recording apparatus of encrypting the access apparatus identification information with the random number; a step by said access apparatus of encrypting the access apparatus identification information with the random number from said data recording apparatus; a step of transferring the encrypted access apparatus identification information from said access apparatus to said data recording apparatus; and a step of comparing the encrypted access apparatus identification information from said access apparatus and the access apparatus identification information encrypted by said data recording apparatus with each other to discriminate whether or not the encrypted access apparatus identification information and the access apparatus identification information encrypted by said data recording apparatus coincide with each other; said access apparatus being authenticated when it is discriminated that the encrypted access apparatus identification information and the access apparatus identification information encrypted by said data recording apparatus coincide with each other.
 17. The data protection method as claimed in claim 12, wherein the step of executing authentication of said data recording apparatus includes: a step of transferring the session key and the first identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said access apparatus of generating a random number; a step of transferring the random number from said access apparatus to said data recording apparatus; a step of transferring second identification information registered in advance in the storage area of said data recording apparatus from said data recording apparatus to said access apparatus; a step by said data recording apparatus of encrypting the second identification information with the random number from said access apparatus and a secret key of said data recording apparatus; a step of transferring the encrypted second identification information from said data recording apparatus to said access apparatus; a step by said access apparatus of encrypting the second identification information with the random number, session key and first identification information; and a step of comparing the encrypted second identification information from said data recording apparatus and the second identification information encrypted by said access apparatus with each other to discriminate whether or not the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other; said data recording apparatus being authenticated when it is discriminated that the encrypted second identification information and the second identification information encrypted by said access apparatus coincide with each other.
 18. The data protection system as claimed in claim 5, wherein said data recording apparatus further includes: a writable-once recording area into which access apparatus identification information of said access apparatus connected first to said data recording apparatus when said data recording apparatus is in an initial state; second random number generation means for generating a random number every time said data recording apparatus is accessed by said access apparatus; seventh transfer means for transferring the random number generated by said second random number generation means to said access apparatus; fifth encryption means for encrypting the access apparatus identification information read out from said writable-once storage area with the random number generated by said second random number generation means; and second comparison discrimination means for comparing the access apparatus identification information encrypted by said fifth encryption means and the access apparatus identification information from said access apparatus encrypted with the random number with each other to discriminate whether or not the access apparatus identification information encrypted by said fifth encryption means and the access apparatus identification from said access apparatus coincide with each other, and said access apparatus further includes: eighth transfer means for reading out and transferring, when said access apparatus is connected first to said data recording apparatus in an initial state, the access apparatus identification information from said second storage area to said data recording apparatus; sixth encryption means for encrypting the access apparatus identification information with the random number sent from said data recording apparatus; and ninth transfer means for transferring the access apparatus identification information encrypted by said sixth encryption means to said data recording apparatus every time said access apparatus accesses said data recording apparatus; said third encryption means, fifth transfer means, fourth encryption means and sixth transfer means operating when both of said first comparison discrimination means and said second comparison discrimination means discriminate coincidence of the pertaining identification information and contents data is to be recorded and stored into said data recording apparatus.
 19. The data protection system as claimed in claim 18, wherein said data recording apparatus further includes third transfer means for reading out and transferring, in response to a request from said access apparatus, the encrypted contents data and the encrypted contents key from said storage section to said access apparatus, and said access apparatus further includes: first decryption means for decrypting, when both of said first comparison discrimination means and said second comparison discrimination means discriminate coincidence of the pertaining identification information and contents data is to be read out from said data recording apparatus, the encrypted contents key read out from said storage section of said data recording apparatus with the access apparatus identification information read out from said second storage area and the session key and first identification information; and second decryption means for decrypting the encrypted contents data read out from said storage section of said data recording apparatus with the contents key decrypted by said first decryption means.
 20. A data recording apparatus for recording and storing data and performing writing/reading out of the data in response to an access from an access apparatus, comprising: a writable-once recording area into which access apparatus identification information of said access apparatus connected first to said data recording apparatus when said data recording apparatus is in an initial state; second random number generation means for generating a random number every time said data recording apparatus is accessed by said access apparatus; seventh transfer means for transferring the random number generated by said second random number generation means to said access apparatus; fifth encryption means for encrypting the access apparatus identification information read out from said writable-once storage area with the random number generated by said second random number generation means; and second comparison discrimination means for comparing the access apparatus identification information encrypted by said fifth encryption means and the access apparatus identification information from said access apparatus encrypted with the random number with each other to discriminate whether or not the access apparatus identification information encrypted by said fifth encryption means and the access apparatus identification from said access apparatus coincide with each other. 